﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Baosight.ZNH.ZMCommon;
using Baosight.Platform.Core.UI.Controls;

//直接载入，不经过后台
namespace Baosight.ZNH.ZMCS.UI
{
    /// <summary>
    /// 系统设置  树形结构
    /// </summary>
    /// Title:ZMCS16
    /// Copyright:Baosight Software LTD.co Copyright (c) 2011
    /// Company:上海宝信软件股份有限公司
    /// Author: 张志芳
    /// Version: 1.0
    /// History:
    ///       2010-12-14  张志芳   [创建]
    ///
    public partial class ZMCS10 : EFViewCmes
    {
        public ZMCS10()
        {
            InitializeComponent();
            this.Loaded += ZMCS10_Loaded;
        }

        private void ZMCS10_Loaded(object sender, RoutedEventArgs e)
        {
            Dictionary<string, string> _args = new Dictionary<string, string>();
            _args.Add("fdModuleNo", "ZMCS");
            this.container.LoadView<EFCustomViewContainerPanel>("ZMCS11", _args);
        }

        /// <summary>
        /// 系统基础设置点击
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ZMCS_Selected(object sender, Telerik.Windows.RadRoutedEventArgs e)
        {
            Dictionary<string, string> _args = new Dictionary<string, string>();
            _args.Add("fdModuleNo", "ZMCS");
            this.container.LoadView<EFCustomViewContainerPanel>("ZMCS11", _args);
        }

        /// <summary>
        /// 生产过程设置点击
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ZMCP_Selected(object sender, Telerik.Windows.RadRoutedEventArgs e)
        {
            Dictionary<string, string> _args = new Dictionary<string, string>();
            _args.Add("fdModuleNo", "ZMCP");
            this.container.LoadView<EFCustomViewContainerPanel>("ZMCS12", _args);
        }
        /// <summary>
        /// 生产文档设置点击
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ZMCD_Selected(object sender, Telerik.Windows.RadRoutedEventArgs e)
        {
            Dictionary<string, string> _args = new Dictionary<string, string>();
            _args.Add("fdModuleNo", "ZMCD");
            this.container.LoadView<EFCustomViewContainerPanel>("ZMCS13", _args);
        }

        /// <summary>
        /// 生产过程
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ZMCL_Selected(object sender, Telerik.Windows.RadRoutedEventArgs e)
        {
            Dictionary<string, string> _args = new Dictionary<string, string>();
            _args.Add("fdModuleNo", "ZMCL");
            this.container.LoadView<EFCustomViewContainerPanel>("ZMCS14", _args);
        }

        /// <summary>
        /// 设备运行
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ZMCE_Selected(object sender, Telerik.Windows.RadRoutedEventArgs e)
        {
            base.OpenEFWindowAlert("正在设计中！", false);
        }


        /// <summary>
        /// 材料使用设置点击
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ZMCM_Selected(object sender, Telerik.Windows.RadRoutedEventArgs e)
        {
            Dictionary<string, string> _args = new Dictionary<string, string>();
            _args.Add("fdModuleNo", "ZMCM");
            this.container.LoadView<EFCustomViewContainerPanel>("ZMCS16", _args);
        }
    }
}
